import jadp from "@/utils/jadp";

export function getToken() {
  return jadp.storageGet("token");
}

export function setToken(token) {
  return jadp.storageSet({ token });
}

export function removeToken() {
  return jadp.storageRemove("token");
}

export function getLock() {
  return jadp.storageGet("lock");
}

export function setLock(lock) {
  return jadp.storageSet({ lock });
}

export function removeLock() {
  return jadp.storageRemove("lock");
}

export function getAdminOrganizeId() {
  return jadp.storageGet("organizeId");
}

export function setAdminOrganizeId(organizeId) {
  return jadp.storageSet({ organizeId });
}

export function removeAdminOrganizeId() {
  return jadp.storageRemove("organizeId");
}

export function getDict() {
  return jadp.storageDictGet("Dict");
}

export function setDict(list) {
  return jadp.storageDictSet("Dict", list);
}

export function removeDict() {
  return jadp.storageRemove("Dict");
}
